package com.beiwei.auto.mode;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WeeklogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WeeklogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWeeklogIdIsNull() {
            addCriterion("weeklog_id is null");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdIsNotNull() {
            addCriterion("weeklog_id is not null");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdEqualTo(Integer value) {
            addCriterion("weeklog_id =", value, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdNotEqualTo(Integer value) {
            addCriterion("weeklog_id <>", value, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdGreaterThan(Integer value) {
            addCriterion("weeklog_id >", value, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("weeklog_id >=", value, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdLessThan(Integer value) {
            addCriterion("weeklog_id <", value, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdLessThanOrEqualTo(Integer value) {
            addCriterion("weeklog_id <=", value, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdIn(List<Integer> values) {
            addCriterion("weeklog_id in", values, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdNotIn(List<Integer> values) {
            addCriterion("weeklog_id not in", values, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdBetween(Integer value1, Integer value2) {
            addCriterion("weeklog_id between", value1, value2, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogIdNotBetween(Integer value1, Integer value2) {
            addCriterion("weeklog_id not between", value1, value2, "weeklogId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdIsNull() {
            addCriterion("weeklog_user_id is null");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdIsNotNull() {
            addCriterion("weeklog_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdEqualTo(Integer value) {
            addCriterion("weeklog_user_id =", value, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdNotEqualTo(Integer value) {
            addCriterion("weeklog_user_id <>", value, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdGreaterThan(Integer value) {
            addCriterion("weeklog_user_id >", value, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("weeklog_user_id >=", value, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdLessThan(Integer value) {
            addCriterion("weeklog_user_id <", value, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("weeklog_user_id <=", value, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdIn(List<Integer> values) {
            addCriterion("weeklog_user_id in", values, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdNotIn(List<Integer> values) {
            addCriterion("weeklog_user_id not in", values, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdBetween(Integer value1, Integer value2) {
            addCriterion("weeklog_user_id between", value1, value2, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andWeeklogUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("weeklog_user_id not between", value1, value2, "weeklogUserId");
            return (Criteria) this;
        }

        public Criteria andMyScoreIsNull() {
            addCriterion("my_score is null");
            return (Criteria) this;
        }

        public Criteria andMyScoreIsNotNull() {
            addCriterion("my_score is not null");
            return (Criteria) this;
        }

        public Criteria andMyScoreEqualTo(Integer value) {
            addCriterion("my_score =", value, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreNotEqualTo(Integer value) {
            addCriterion("my_score <>", value, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreGreaterThan(Integer value) {
            addCriterion("my_score >", value, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("my_score >=", value, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreLessThan(Integer value) {
            addCriterion("my_score <", value, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreLessThanOrEqualTo(Integer value) {
            addCriterion("my_score <=", value, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreIn(List<Integer> values) {
            addCriterion("my_score in", values, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreNotIn(List<Integer> values) {
            addCriterion("my_score not in", values, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreBetween(Integer value1, Integer value2) {
            addCriterion("my_score between", value1, value2, "myScore");
            return (Criteria) this;
        }

        public Criteria andMyScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("my_score not between", value1, value2, "myScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreIsNull() {
            addCriterion("lead_score is null");
            return (Criteria) this;
        }

        public Criteria andLeadScoreIsNotNull() {
            addCriterion("lead_score is not null");
            return (Criteria) this;
        }

        public Criteria andLeadScoreEqualTo(Integer value) {
            addCriterion("lead_score =", value, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreNotEqualTo(Integer value) {
            addCriterion("lead_score <>", value, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreGreaterThan(Integer value) {
            addCriterion("lead_score >", value, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("lead_score >=", value, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreLessThan(Integer value) {
            addCriterion("lead_score <", value, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreLessThanOrEqualTo(Integer value) {
            addCriterion("lead_score <=", value, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreIn(List<Integer> values) {
            addCriterion("lead_score in", values, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreNotIn(List<Integer> values) {
            addCriterion("lead_score not in", values, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreBetween(Integer value1, Integer value2) {
            addCriterion("lead_score between", value1, value2, "leadScore");
            return (Criteria) this;
        }

        public Criteria andLeadScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("lead_score not between", value1, value2, "leadScore");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andMainContentIsNull() {
            addCriterion("main_content is null");
            return (Criteria) this;
        }

        public Criteria andMainContentIsNotNull() {
            addCriterion("main_content is not null");
            return (Criteria) this;
        }

        public Criteria andMainContentEqualTo(String value) {
            addCriterion("main_content =", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentNotEqualTo(String value) {
            addCriterion("main_content <>", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentGreaterThan(String value) {
            addCriterion("main_content >", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentGreaterThanOrEqualTo(String value) {
            addCriterion("main_content >=", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentLessThan(String value) {
            addCriterion("main_content <", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentLessThanOrEqualTo(String value) {
            addCriterion("main_content <=", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentLike(String value) {
            addCriterion("main_content like", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentNotLike(String value) {
            addCriterion("main_content not like", value, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentIn(List<String> values) {
            addCriterion("main_content in", values, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentNotIn(List<String> values) {
            addCriterion("main_content not in", values, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentBetween(String value1, String value2) {
            addCriterion("main_content between", value1, value2, "mainContent");
            return (Criteria) this;
        }

        public Criteria andMainContentNotBetween(String value1, String value2) {
            addCriterion("main_content not between", value1, value2, "mainContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentIsNull() {
            addCriterion("plan_content is null");
            return (Criteria) this;
        }

        public Criteria andPlanContentIsNotNull() {
            addCriterion("plan_content is not null");
            return (Criteria) this;
        }

        public Criteria andPlanContentEqualTo(String value) {
            addCriterion("plan_content =", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentNotEqualTo(String value) {
            addCriterion("plan_content <>", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentGreaterThan(String value) {
            addCriterion("plan_content >", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentGreaterThanOrEqualTo(String value) {
            addCriterion("plan_content >=", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentLessThan(String value) {
            addCriterion("plan_content <", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentLessThanOrEqualTo(String value) {
            addCriterion("plan_content <=", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentLike(String value) {
            addCriterion("plan_content like", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentNotLike(String value) {
            addCriterion("plan_content not like", value, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentIn(List<String> values) {
            addCriterion("plan_content in", values, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentNotIn(List<String> values) {
            addCriterion("plan_content not in", values, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentBetween(String value1, String value2) {
            addCriterion("plan_content between", value1, value2, "planContent");
            return (Criteria) this;
        }

        public Criteria andPlanContentNotBetween(String value1, String value2) {
            addCriterion("plan_content not between", value1, value2, "planContent");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdIsNull() {
            addCriterion("weeklog_group_id is null");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdIsNotNull() {
            addCriterion("weeklog_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdEqualTo(Integer value) {
            addCriterion("weeklog_group_id =", value, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdNotEqualTo(Integer value) {
            addCriterion("weeklog_group_id <>", value, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdGreaterThan(Integer value) {
            addCriterion("weeklog_group_id >", value, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("weeklog_group_id >=", value, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdLessThan(Integer value) {
            addCriterion("weeklog_group_id <", value, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("weeklog_group_id <=", value, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdIn(List<Integer> values) {
            addCriterion("weeklog_group_id in", values, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdNotIn(List<Integer> values) {
            addCriterion("weeklog_group_id not in", values, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("weeklog_group_id between", value1, value2, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andWeeklogGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("weeklog_group_id not between", value1, value2, "weeklogGroupId");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNull() {
            addCriterion("del_flag is null");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNotNull() {
            addCriterion("del_flag is not null");
            return (Criteria) this;
        }

        public Criteria andDelFlagEqualTo(Integer value) {
            addCriterion("del_flag =", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotEqualTo(Integer value) {
            addCriterion("del_flag <>", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThan(Integer value) {
            addCriterion("del_flag >", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("del_flag >=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThan(Integer value) {
            addCriterion("del_flag <", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThanOrEqualTo(Integer value) {
            addCriterion("del_flag <=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagIn(List<Integer> values) {
            addCriterion("del_flag in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotIn(List<Integer> values) {
            addCriterion("del_flag not in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagBetween(Integer value1, Integer value2) {
            addCriterion("del_flag between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("del_flag not between", value1, value2, "delFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}